package ch08;

import java.io.IOException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Paths;
import static java.nio.file.StandardCopyOption.*;

public class Download {
	public static void main(String[] args) throws IOException {
		URL url = new URL(args[0]);
		Files.copy(url.openStream(), Paths.get(args[1]),REPLACE_EXISTING);
	}
}
